{erl_opts, [
    fail_on_warning,
    warn_export_all,
    warn_unused_import,
    warn_untyped_record,
    no_debug_info
]}.

{port_specs, [{"priv/ejieba.so", ["c_src/*.cpp"]}]}.

{port_env, [
    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
        "CXXFLAGS", "$CXXFLAGS -Ic_src/cppjieba/include -Ic_src/cppjieba/deps/ -Ic_src/cppjieba/deps/gtest/include -fPIC -shared"},
    {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
        "LDFLAGS", "$LDFLAGS -lstdc++"}
]}.

%%{deps, [
%%    %%web服务器
%%    {cowboy, ".*", {git, "https://github.com/ninenines/cowboy", {tag, "2.1.0"}}}
%%]}.
